from django.db import models

# Create your models here.
class User(models.Model):
    name=models.CharField(max_length=40,unique=True)
    age=models.IntegerField()

class Test(models.Model):
    depart=models.ForeignKey(to='User',to_field='id',on_delete=models.CASCADE)

